home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 142
/
Volume 142 Oct 17 2011 - Damaged.iso
/
Games
/
operation-graduates.swf
/
scripts
/
frame_41
/
DoAction_15.as
< prev
next >
Wrap
Text File
|
2011-10-17
|
1KB
|
23 lines
function playSound(piece, pan)
{
this[piece].start();
}
function playLoop(piece)
{
this[piece].start(0,999);
}
function stopLoop(piece)
{
this[piece].stop(piece);
}
this.createEmptyMovieClip("sounds",soundDepth);
soundList = ["sound.rollover","sound.onrelease","sound.onpress","music.intro","music.level","music.boss","sound.gun1","sound.kidsplode","sound.powerup","sound.missile.explode","sound.bomb.explode","sound.beehive.explode","sound.beehive.loop","sound.homing.explode","sound.helix","sound.helix.explode","sound.gun2","sound.asteroid.explode","sound.ready.1","sound.ready.2","sound.ready.3","sound.ready.4","sound.ready.5","sound.goodjob.1","sound.goodjob.2","sound.goodjob.3","sound.goodjob.4","sound.goodjob.5","sound.goodjob.6","sound.cheat","sound.prepare","sound.gameover.1","sound.gameover.2","sound.gameover.3","sound.1up","sound.codemodulator","sound.boss.explode"];
i = 0;
while(i < soundList.length)
{
sounds.createEmptyMovieClip("fx" + i,i);
this[soundList[i]] = new Sound(sound["fx" + i]);
this[soundList[i]].attachSound(soundList[i]);
i++;
}